package com.xyht.sca_s.student_manage_system.modules.useMoneyApplication.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author XYHT
 * @since 2023-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_use_money_application_detail")
@ApiModel(value="SmsUseMoneyApplicationDetail对象", description="")
public class SmsUseMoneyApplicationDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "申请表ID")
    private String applicationId;

    private Integer processIsApplicationEdit;

    private String allowUserId;

    @TableLogic
    private String isDeleted;

    @ApiModelProperty(value = "流程表Id")
    private String processId;

    @ApiModelProperty(value = "是否签名：0不签，1签名")
    private Boolean processIsSign;

    @ApiModelProperty(value = "是否盖章：0不盖章，1盖章")
    private Boolean processIsStamp;

    private String detailAllowSign;

    private String detailAllowStamp;

    @ApiModelProperty(value = "审批人Id")
    private String checkId;

    @ApiModelProperty(value = "审批类型：0：个人，1：角色")
    private Integer checkType;

    @ApiModelProperty(value = "申请状态：0：待审核，1：通过，2：待审核")
    private Integer applicationState;

    @ApiModelProperty(value = "审批状态：0：审批中，1：通过   2：驳回")
    private Integer detailAllowStatus;

    @ApiModelProperty(value = "审批意见")
    private String detailAllowOption;

//    @ApiModelProperty(value = "流程对象id：个人id或者角色id")
//    private String processObjectId;
//
//    @ApiModelProperty(value = "流程对象类型：0个人，1角色")
//    private Integer processObjectType;

    private String processName;

    @ApiModelProperty(value = "审批时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date processTime;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
